package com.yt.app.provider.dao.impl;

import com.yt.app.core.model.UserOrder;
import com.yt.app.provider.dao.UserOrderDao;
import com.yt.core.dao.GenericDaoImpl;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by liujunshi on 16-1-22.
 */
public class UserOrderDaoImpl extends GenericDaoImpl<UserOrder, Long> implements UserOrderDao {
	public UserOrderDaoImpl() {
		setNameSpace("com.yt.app.userorder");
	}

	@Override
	public void updateOrderStatus(Long orderId, String status) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("id", orderId);
		params.put("orderStatus", status);
		this.getSqlSession().update(this.getNameSpace() + ".updateOrderStatus", params);
	}
}
